#include "Person.h"


Person::Person( const char *pName, int age )
:m_pName (new char[strlen( pName ) + 1]) ,m_age ( age )	
{
	
	strcpy( m_pName, pName );
}

Person::~Person()
{
	delete [] m_pName;
}

void Person::Show( void )
{
	cout << *this;
}

ostream & operator << ( ostream &os, Person &rhs )
{
	os << "Name: " << rhs.m_pName << endl;
	os << "Age: " << rhs.m_age << endl;

	return os;
}

